var e = function(e) {
    return e && e.__esModule ? e : {
        default: e
    };
}(require("../../utils/config.js"));

require("../../utils/api.js"), require("../../utils/util.js"), require("../../utils/auth.js"), 
require("../../wxParse/wxParse.js"), require("../../utils/wxApi.js"), require("../../utils/wxRequest.js"), 
getApp();

Page({
    data: {
        url: null,
        title: ""
    },
    onLoad: function(t) {
        var l = this;
        if (console.log(decodeURIComponent(t.url)), console.log(t), null != t.url) {
            var u = decodeURIComponent(t.url);
            -1 != u.indexOf("*") && (u = u.replace("*", "?")), l.setData({
                url: u
            });
        } else l.setData({
            url: "https://" + e.default.getDomain
        });
    },
    onShareAppMessage: function(t) {
        var l = this, u = t.webViewUrl;
        return -1 != u.indexOf("?") && (u = u.replace("?", "*")), u = "pages/webpage/webpage?url=" + u, 
        console.log(t.webViewUrl), {
            title: '分享"' + e.default.getWebsiteName + '"的文章' + l.data.title,
            path: u,
            success: function(e) {
                console.log(u);
            },
            fail: function(e) {}
        };
    }
});